from lxml import etree

ele_tree = etree.parse(r'bookstore.xml')

print(type(ele_tree))